visualsurfhistory.onFirefoxLoad = function(event) {
  document.getElementById("contentAreaContextMenu")
          .addEventListener("popupshowing", function (e){ visualsurfhistory.showFirefoxContextMenu(e); }, false);
};

visualsurfhistory.showFirefoxContextMenu = function(event) {
  // show or hide the menuitem based on what the context menu is on
  document.getElementById("context-visualsurfhistory").hidden = gContextMenu.onImage;
};

window.addEventListener("load", visualsurfhistory.onFirefoxLoad, false);

if(!pkg) var pkg={};
if(!pkg.jaoxd) pkg.jaoxd={}; 

//using closures
pkg.jaoxd.vsh = function() {

//private
var urlhistory = new Array(); //Array of url visited 

//public 
function pub() {
}

return pub

}();

